package model

import "time"

// MaasHost 宿主机表
type MaasHost struct {
	Id                    uint64     `gorm:"primary_key" json:"id"`
	Name                  string     `gorm:"column:name" json:"name"`                                       //机器名称
	HostId                string     `gorm:"column:host_id" json:"host_id"`                                 //宿主机id
	Architectures         string     `gorm:"column:architectures" json:"architectures"`                     //机器架构
	Tags                  string     `gorm:"column:tags" json:"tags"`                                       //宿主机标签
	UsedCores             uint       `gorm:"column:used_cores" json:"used_cores"`                           //已使用核数
	UsedMemory            uint       `gorm:"column:used_memory" json:"used_memory"`                         //已使用内存
	UsedLocalStorage      uint64     `gorm:"column:used_local_storage" json:"used_local_storage"`           //已使用磁盘
	TotalCores            uint       `gorm:"column:total_cores" json:"total_cores"`                         //总核数
	TotalMemory           uint       `gorm:"column:total_memory" json:"total_memory"`                       //总内存
	TotalLocalStorage     uint64     `gorm:"column:total_local_storage" json:"total_local_storage"`         //总磁盘
	AvailableCores        uint       `gorm:"column:available_cores" json:"available_cores"`                 //剩余核数
	AvailableMemory       uint       `gorm:"column:available_memory" json:"available_memory"`               //剩余内存
	AvailableLocalStorage uint64     `gorm:"column:available_local_storage" json:"available_local_storage"` //剩余磁盘
	CreatedAt             time.Time  `gorm:"column:created_at" json:"created_at"`                           //创建时间
	UpdatedAt             time.Time  `gorm:"column:updated_at" json:"updated_at"`                           //更新时间
	DeletedAt             *time.Time `gorm:"column:deleted_at" json:"deleted_at"`                           //删除时间
}
